/**
 * 
 */
package com.wolfpire.workflow.spring;

import java.util.List;
import java.util.Map;

import org.dom4j.DocumentException;

import com.wolfpire.system.common.EasyuiPage;
import com.wolfpire.system.common.Page;
import com.wolfpire.system.common.base.service.IBaseHibernateService;
import com.wolfpire.system.model.User;
import com.wolfpire.workflow.om.ProInstance;
import com.wolfpire.workflow.om.Workflow;

/**
 * @author lihd
 *
 */
public interface WorkflowService extends IBaseHibernateService<Workflow, Long> {
	
	public List<Workflow> list(Workflow workflow);

	public Page<Workflow> setPageDataList(EasyuiPage<Workflow> page, Workflow filterWorkflow);

	public ProInstance startProcess(Long workFlowId, Long formId, User user,
			Map<String, Object> params);
	
	/**
	 * 获取deploymentId对应的流程图xml
	 * @param valueOf
	 * @return
	 */
	public String getDefXmlByDeployId(String deploymentId);

	public Map<String, Object> getFlowChart(Long instanceId) throws DocumentException ;

}
